package cn.com.flower.admin.content.dao.persist.repository;

import cn.com.flower.admin.content.pojo.entity.Category;

import cn.com.flower.admin.content.pojo.vo.CategoryStandardVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;


public interface ICategoryRepository {


    //根据Id删除数据
    int delete(Long id);


    //插入数据
    int insert(Category category);
    //根据类别名称查询该类别名称的数量
    int countByName(String name);

    //根据id查询类别详情
    CategoryStandardVO getStandardById(Long id);
    //根据id修改类别详情
    int updateById(Long id);
}
